﻿using System;
using System.Linq;
using System.Linq.Expressions;
using EPiBoost.Core.Infrastructure.Interfaces.Model;

namespace EPiBoost.Core.Infrastructure.Interfaces.Repositories
{
	public interface IExceptionLogRepository
	{
		void Add(ILogItem logItem); 
		IQueryable<ILogItem> GetQuery();
		IQueryable<ILogItem> GetAll();
		IQueryable<ILogItem> Find(Expression<Func<ILogItem, bool>> predicate);
		ILogItem Single(Expression<Func<ILogItem, bool>> predicate);
		ILogItem First(Expression<Func<ILogItem, bool>> predicate);
	}
}
